from entity.journal import Journal
import inspect


class fath(object):
    def __init__(self):
        self.x = "11"


class child(fath):
    def __init__(self):
        super().__init__()
        print(self.x)


if __name__ == '__main__':
    field_dic = {}
    for field in Journal._meta.fields:
        print(field)
        # field_dic[field.name] = field.verbose_name
        # print('字段类型:', type(field).__name__)  # 返回的是‘charfield','textfield',等这些类型
